package com.wanxi.vo;

import com.wanxi.model.NewsType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Chengbo Zhang
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class NewsVO {
    private Long id;
    private String title;
    private String content;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date date;
    private Integer enable;
    private String remark;

    private NewsType newsType;
}
